const { log } = require('mathjs');
const math = require('mathjs');

const AIM = 2
let target = math.add(math.zeros(10), 0.01).toArray()
target[AIM] = 0.99


console.log(target);

function getTarget(target_len, target) {
    let temp = math.add(math.zeros(target_len), 0.01).toArray()
    temp[target] = 0.99
    return temp
}

console.log(getTarget(10, 3));